<?php

namespace app\admin\controller;

use app\common\model\Clients as M;

class Clients extends Base
{
    public function get_list($callback = '')
    {
        return parent::get_list(function (&$val) {
            $genders = M::getGender();
            $val['gender_name'] = $genders[$val['gender']];
        });
    }


    public function index()
    {
        $this->assign('my_self',session('my_self'));
        return parent::index();
    }
}
